package com.tpshion.chat.exception;

public enum RespStatus {

    OK(2000,"ok"),
    FAIL(4000,"fail"),
    TOKEN_ERROR(4001,"token验证失败"),
    TPKEN_NO_EXIST(4002,"token不存在"),
    NO_LOGIN(4003,"未登录"),
    USER_NO_EXIST(4004,"用户不存在"),
    USER_EXIST(4005,"用户已存在"),
    USER_PASSWORD_ERROR(4005,"用户密码不正确"),
    NO_LOGIN_INFO(4006,"未获取到用户登录信息"),
    ERROR(5000,"系统异常"),
    PARAM_NOFUND(5001,"请求参数找不到"),
    REQUEST_TYPE_ERROR(5002,"请求类型错误"),
    REQUEST_ADD_FRIEND(5003,"好友请求已发送");

    private Integer code;

    private String messge;

    RespStatus(Integer code, String messge) {
        this.code = code;
        this.messge = messge;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessge() {
        return messge;
    }

    public void setMessge(String messge) {
        this.messge = messge;
    }
}
